# -*- coding: utf-8 -*-

"""
    for debug
"""

import logging
logger = logging.getLogger('bt_server')


def print_obj(obj):
    for key in dir(obj):
        if key.startswith('_'):
            continue
        try:
            print('{}(): {}'.format(key, getattr(obj, key)()))
        except Exception as e:
            print('{}: {}'.format(key, getattr(obj, key)))
